package com.rxy.seckill.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.rxy.seckill.domain.MiaoshaUser;
import com.rxy.seckill.redis.RedisService;
import com.rxy.seckill.service.MiaoshaUserService;

@Controller
@RequestMapping("/goods")
public class GoodsController {

	@Autowired
	MiaoshaUserService userService;
	
	@Autowired
	RedisService redisService;
	
	@GetMapping("/to_list")
	public String toList(Model model, MiaoshaUser user) {
		model.addAttribute("user",user);
		return "goods_list";
	}
}
